package com.ht.service.impl;

import com.ht.bean.*;
import com.ht.dao.UserDao;
import com.ht.service.StudentService;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

//学生表增删改查  表名：student
@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    private UserDao udao;


    @Override
    public List<Student> stulist() { return udao.stulist(); }

    @Override
    public List<Studentclass> sclist() {
        return udao.sclist();
    }

    @Override
    public List<Studenthuor> shlist() {
        return udao.shlist();
    }

    @Override
    public List<Major> mlist() {
        return udao.mlist();
    }

    //查询学生表
    @Override
    public List<Map> allstu(int startIndex, int pageSize, Student student) { return udao.allstu(startIndex, pageSize, student); }

    //查询总行数
    @Override
    public int countStudent(Student student) { return udao.countStudent(student); }

    //删除学生
    @Override
    public boolean delstu(Integer stuId) {
        return udao.delstu(stuId);
    }

    //新增学生
    @Override
    public boolean insestu(Student student) { return udao.insestu(student); }

    //根据id查信息
    @Override
    public Student updstubyid(Integer stuId) { return udao.allstubyid(stuId); }

    //修改学生信息
    @Override
    public boolean updstu(Student student) { return udao.updstu(student); }

    //查询班级表
    @Override
    public List<Map> classlist(Integer startIndex, Integer pageSize,Studentclass Studentclass) { return udao.classlist(startIndex,pageSize,Studentclass); }

    //查询班级表总行数
    @Override
    public int countclass(Studentclass studentclass) { return udao.countclass(studentclass); }

    //查询班级类型表
    @Override
    public List<Classtype> ctypelist() { return udao.ctypelist(); }

    //查询届别表
    @Override
    public List<Studentfall> sfalllist() { return udao.sfalllist(); }

//    查询系别表
    @Override
    public List<Dept> deptlist() { return udao.deptlist(); }

//    查询专业表
    @Override
    public List<Major> majorlist() { return udao.majorlist(); }

//    查询员工表
    @Override
    public List<Emp> emplist() { return udao.emplist(); }

    //查询班级老师表
    @Override
    public List<Classteacher> ctlist() { return udao.ctlist(); }

    //查询学期表
    @Override
    public List<Term> tlist() { return udao.tlist(); }

    //查课程表
    @Override
    public List<Course> clist() { return udao.clist(); }

    //添加班级
    @Override
    public boolean classadd(Studentclass studentclass) { return udao.classadd(studentclass); }

    //删除学生表
    @Override
    public boolean classdel(String classId) { return udao.classdel(classId); }

    //根据id查班级
    @Override
    public Studentclass classbyid(String classId) { return udao.classbyid(classId); }

    //修改班级
    @Override
    public boolean classupd(Studentclass studentclass) { return udao.classupd(studentclass); }

    //查询成绩表
    @Override
    public List<Map> stuscorelist(Integer startIndex, Integer pageSize,Student student,Course course) { return udao.stuscorelist(startIndex,pageSize,student,course); }

    //查询成绩表总行数
    @Override
    public int countstuscore(Student student,Course course) { return udao.countstuscore(student,course); }

    //新增学生成绩
    @Override
    public boolean addstuscore(Studentscore studentscore) { return udao.addstuscore(studentscore); }

    //删除学生成绩
    @Override
    public boolean delstuscore(String scoreId) { return udao.delstuscore(scoreId); }

    //根据id查学生信息
    @Override
    public Studentscore stuscorebyid(String scoreId) { return udao.stuscorebyid(scoreId); }

    //修改学生信息
    @Override
    public boolean updstuscore(Studentscore studentscore) { return udao.updstuscore(studentscore); }


    //----------------------------------------------------------------------------------------------

    //查询答辩成绩
    @Override
    public List<Map> stureplyscore(Integer startIndex, Integer pageSize,Student student,Project project) { return udao.stureplyscore(startIndex,pageSize,student,project); }

    //查询总行数
    @Override
    public int countstureplyscore(Student student, Project project) { return udao.countstureplyscore(student,project); }

    //添加答辩成绩
    @Override
    public boolean addstureplyscore(Studentreplyscore studentreplyscore) { return udao.addstureplyscore(studentreplyscore); }

    //查询项目表
    @Override
    public List<Project> prolist() { return udao.prolist(); }

    //删除答辩成绩
    @Override
    public boolean delstureplyscore(String replyId) { return udao.delstureplyscore(replyId); }

    //根据id查答辩成绩
    @Override
    public Studentreplyscore stursbyid(String replyId) { return udao.stursbyid(replyId); }

    //修改答辩成绩
    @Override
    public boolean updstureplyscore(Studentreplyscore studentreplyscore) { return udao.updstureplyscore(studentreplyscore); }

    @Override
    public List<Studentclass> classlistt() {
        return udao.classlistt();
    }

    //查询班级表
    @Override
    public List<Studentclass> classlist() { return udao.classlistt(); }

    //查询届别表
    @Override
    public List<Studentfall> falllist() { return udao.falllistt(); }

    //班级分配---------------------------------------------------------------------------------------
    //查询各班学生情况
    @Override
    public List<Map> yfblist(String classId,Integer startIndex, Integer pageSize) { return udao.yfblist(classId,startIndex,pageSize); }

    @Override
    public int countyfb(String classId) {
        return udao.countyfb(classId);
    }

    @Override
    public List<Enrollment> list123(Integer startIndex, Integer pageSize) {
        return udao.list123(startIndex,pageSize);
    }

    @Override
    public List<Enrollment> mentlist() {
        return udao.mentlist();
    }

    @Override
    public int count123() {
        return udao.count123();
    }

    //查询要分班的人
    @Override
    public List<Enrollment> wfb(Integer[] eid) { return udao.wfb(eid); }

    //分班
    @Override
    public boolean classfb(List<Enrollment> estu, Integer clazz) { return udao.classfb(estu,clazz); }

    //分班之后删除
    @Override
    public boolean deletefb(Integer[] ids) { return udao.deletefb(ids); }

    //课程类别------------------------------------------------------------------------------------------
    @Override
    public List<Coursetype> lookctype(Integer startIndex, Integer pageSize) { return udao.lookctype(startIndex,pageSize); }

//    课程类别总行数
    @Override
    public int countctype() { return udao.countctype(); }

    @Override
    public boolean addctype(Coursetype coursetype) { return udao.addctype(coursetype); }

    @Override
    public Coursetype ctypebyid(String courseTypeId) { return udao.ctypebyid(courseTypeId); }

    @Override
    public boolean updctype(Coursetype coursetype) { return udao.updctype(coursetype); }

    @Override
    public boolean delctype(String courseTypeId) { return udao.delctype(courseTypeId); }

    //课程管理------------------------------------------------
    @Override
    public List<Map> lookcourse(Integer startIndex, Integer pageSize) { return udao.lookcourse(startIndex,pageSize); }

    @Override
    public int countcourse() { return udao.countcourse(); }

    @Override
    public boolean addcourse(Course course) { return udao.addcourse(course); }

    @Override
    public Course coursebyid(String courseId) { return udao.coursebyid(courseId); }

    @Override
    public boolean updcourse(Course course) { return udao.updcourse(course); }

    @Override
    public boolean delcourse(String courseId) { return udao.delcourse(courseId); }

    @Override
    public List<Coursetype> coursetypelist() { return udao.coursetypelist(); }


    //试讲培训--------------------------
    @Override
    public List<Map> looktrial(Integer startIndex, Integer pageSize) {
        return udao.looktrial(startIndex,pageSize);
    }

    @Override
    public int counttrial() {
        return udao.counttrial();
    }

    @Override
    public boolean addtrial(Trial trial) {
        return udao.addtrial(trial);
    }

    @Override
    public Trial trialbyid(String trialId) {
        return udao.trialbyid(trialId);
    }

    @Override
    public boolean updtrial(Trial  trial) {
        return udao.updtrial(trial);
    }

    @Override
    public boolean deltrial(String trialId) {
        return udao.deltrial(trialId);
    }

    @Override
    public List<Course> courselist() {
        return udao.courselist();
    }

    @Override
    public List<Emp> elist() {
        return udao.elist();
    }

    //-----------------------------------------------值班管理
    @Override
    public List<Map> weeklist(Integer startIndex, Integer pageSize) {
        return udao.weeklist(startIndex,pageSize);
    }

    @Override
    public int countweek() {
        return udao.countweek();
    }

    @Override
    public boolean addweek(Weekarrange weekarrange) {
        return udao.addweek(weekarrange);
    }

    @Override
    public boolean delweek(String weekArrangeId) {
        return udao.delweek(weekArrangeId);
    }

    @Override
    public Weekarrange weekbyid(String weekArrangeId) {
        return udao.weekbyid(weekArrangeId);
    }

    @Override
    public boolean updweek(Weekarrange weekarrange) {
        return udao.updweek(weekarrange);
    }

    @Override
    public List<Studenthuor> stuh() {
        return udao.stuh();
    }

    @Override
    public List<Map> hlist(Integer startIndex, Integer pageSize) {
        return udao.hlist(startIndex,pageSize);
    }

    @Override
    public int counth() {
        return udao.counth();
    }

    @Override
    public List<Student> studentlist(Integer startIndex, Integer pageSize) {
        return udao.studentlist(startIndex,pageSize);
    }

    @Override
    public int countstu() {
        return udao.countstu();
    }

    @Override
    public int cwhuor(Integer huorId) {
        return udao.cwhuor(huorId);
    }

    @Override
    public boolean fpstuss(Integer[] ids, Integer huorId) {
        return udao.fpstuss(ids,huorId);
    }

    @Override
    public int cwhuorr(Integer huorId) {
        return udao.cwhuorr(huorId);
    }

    @Override
    public boolean upshuse(Integer huorId, int shu) {
        return udao.upshuse(huorId,shu);
    }


}
